package com.richie696.rabbit.order.service;

import com.richie696.rabbit.commons.ExecuteResult;
import com.richie696.rabbit.order.domain.OrderInfo;

import java.util.List;

public interface OrderService {

    List<OrderInfo> findOrdersByUserId(Long userId);

    ExecuteResult<?> doBuy(Long userId, Long productId, Integer count);

    ExecuteResult<Long> doPayment(Long userId, String orderId);

    void doExpiredRefresh(Long userId, String orderId);

}
